﻿<%@ Page Language="c#" CodeBehind="Contract_HostDomain_Edit.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.contract.Contract_HostDomain_Edit" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        
        <div class="modulecontent">
            <fieldset>
<%--            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>--%>

                 <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/contract/contract_hostdomain.aspx?pageid=29">Contract hosting-domain</a>
                    &nbsp;>&nbsp;
                    <a href="#">Edit</a>
                </div>
                <br /><br />

                <div class="div_Edit">
                    <table cellpadding='3' cellspacing='0' border='0' width="auto" class="tb_edit" >
                         <tr >
                            <td colspan="4">
                                <table cellpadding=0 cellspacing=0 border=0>
                                    <tr class="div_title_parent">
                                        <td class="div_title div_title_group">COMPANY INFORMATION:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="title">Contract code:</td>
                            <td class="input" colspan="3">
                                <asp:HiddenField ID="hidId" runat="server" />

                                <asp:HiddenField ID="hidCreatedOn" runat="server" />                              


                                <asp:TextBox ID="txtContract_Code" runat="server" CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="txtContract_Code" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="req1" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Company name:</td>
                            <td class="input" colspan="3">
                                <asp:TextBox ID="txtCompany_Name" runat="server" CssClass="txtInput" MaxLength="50" Width="600"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="txtCompany_Name" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator1" runat="server"  ></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        tr>
                            <td class="title">Company address:</td>
                            <td class="input" colspan="3">
                                <asp:TextBox ID="txtCompany_Address" runat="server" CssClass="txtInput" MaxLength="100" Width="600"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="txtCompany_Address" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator2" runat="server"  ></asp:RequiredFieldValidator>
                            
                       </td>
                        </tr>

                        <tr>
                            <td class="title">Admin name:</td>
                            <td class="input" colspan="3">
                                <asp:TextBox ID="txtAdmin_Name" runat="server" CssClass="txtInput" MaxLength="50" Width="600"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="txtAdmin_Name" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator9" runat="server"  ></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        
                         <tr>
                            <td class="title">Admin phone:</td>
                            <td class="input" colspan=3>
                                <asp:TextBox ID="txtAdmin_Phone" runat="server" CssClass="txtInput" MaxLength="100" Width="600"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="txtAdmin_Phone" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator5" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Admin email:</td>
                            <td class="input">
                                <asp:TextBox ID="txtAdmin_Email" runat="server" CssClass="txtInput" MaxLength="100" Width="600"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="title">Note:</td>
                            <td class="input">
                                <asp:TextBox ID="txtNote" runat="server" CssClass="txtInput" MaxLength="200" Width="600"></asp:TextBox>
                            </td>
                        </tr>
                        <tr >
                            <td colspan="4">
                                <table cellpadding=0 cellspacing=0 border=0>
                                    <tr class="div_title_parent">
                                        <td class="div_title div_title_group">HOSTING PACKAGE:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

                       <tr>
                            <td class="title"></td>
                            <td class="input gSDMS_Grid" colspan="3">
        
                                <asp:UpdatePanel ID="updPanner" runat="server" EnableViewState="true">
                                    <ContentTemplate>
                                        
                                           <asp:GridView ID="grdHostPackage" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="10" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                                                CssClass="css_grid" ShowFooter="true" ShowFooterWhenEmpty="True" DataKeyNames="Hosting_Contract_Hosting_ID"
                                                >
                                                <AlternatingRowStyle CssClass='AlternatingRowStyle' /> <EditRowStyle CssClass='EditRowStyle' />
                                                <FooterStyle CssClass='FooterStyle' /> <HeaderStyle CssClass='HeaderStyle' />
                                                <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" /> <RowStyle CssClass='RowStyle' />
                                                <SelectedRowStyle CssClass='SelectedRowStyle' />
                                    
                                                <Columns >
                                                    <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                                        <ItemTemplate>
                                                            <asp:LinkButton CommandName="insert-empty-row" CommandArgument='<%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>' ID="lbtInser" runat="server" ValidationGroup="13" ToolTip="Click to insert a empty row" Font-Underline="true">
                                                                <%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>
                                                            </asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Package (*)" ItemStyle-CssClass="text" HeaderStyle-Width="150px">
                                                        <ItemTemplate><%#Eval("HostPackageName")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="cboCAT_Hosting_ID"  CssClass="txtInput" Width="150px" Height="21px" runat="server" ValidationGroup="11"  ></asp:DropDownList>
                                                            <asp:RequiredFieldValidator ControlToValidate="cboCAT_Hosting_ID" Text='<%#Eval("HostPackageName")%>' SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqcboCAT_Hosting_ID1" runat="server" ValidationGroup="11" ></asp:RequiredFieldValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:DropDownList ID="cboCAT_Hosting_ID" CssClass="txtInput" Width="150px" Height="21px" runat="server" ValidationGroup="12" ></asp:DropDownList>
                                                            <asp:RequiredFieldValidator ControlToValidate="cboCAT_Hosting_ID" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqcboCAT_Hosting_ID2" runat="server" ValidationGroup="12" ></asp:RequiredFieldValidator>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                        
                                                    <asp:TemplateField HeaderText="Size(Mb)" ItemStyle-CssClass="text">
                                                        <ItemTemplate><%#Eval("Size")%></ItemTemplate></asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Start date (*)" ItemStyle-CssClass="text" HeaderStyle-Width="80px">
                                                        <ItemTemplate><%#Eval("Start_Date")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server" Text='<%#Eval("Start_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="11" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="11"  ID="ReqtxtStart_Date1" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="11"  ID="RegtxtStart_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server" Text='<%#Eval("Start_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="12" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="12" ID="ReqtxtStart_Date2" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="12" ID="RegtxtStart_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="End date (*)" ItemStyle-CssClass="text" HeaderStyle-Width="80px">
                                                        <ItemTemplate> <div class='<%# ud_gSDMS.Code_Service.Library.GiveAlarm(Eval("End_Date"),"vi-VN") %>' > <%#Eval("End_Date")%></div></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" Text='<%#Eval("End_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="11" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqtxtEnd_Date1" runat="server" ValidationGroup="11"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ID="RegtxtEnd_Date2" runat="server"  ValidationGroup="11"
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" Text='<%#Eval("End_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="12" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="12" ID="ReqtxtEnd_Date2" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="12" ID="RegtxtEnd_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                             </FooterTemplate>
                                                    </asp:TemplateField>                                        
                                                    
                                                    <asp:TemplateField HeaderText="Domain" ItemStyle-CssClass="text" HeaderStyle-Width="200px">
                                                        <ItemTemplate> <%#Eval("Domain")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtHosting_Domain" runat="server" Text='<%#Eval("Domain")%>' CssClass="txtInput" MaxLength="100" ></asp:TextBox>
                                                       
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtHosting_Domain" runat="server" Text='<%#Eval("Domain")%>' CssClass="txtInput" MaxLength="100"></asp:TextBox>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Content" ItemStyle-CssClass="text" HeaderStyle-Width="215px">
                                                        <ItemTemplate> <%#Eval("Hosting_Content")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtHosting_Content" runat="server" Text='<%#Eval("Hosting_Content")%>' CssClass="txtInput" MaxLength="100" Width="200" ></asp:TextBox>
                                                       
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtHosting_Content" runat="server" Text='<%#Eval("Hosting_Content")%>' CssClass="txtInput" MaxLength="100" Width="175"></asp:TextBox>
                                                            <asp:ImageButton ID="btnAdd" style=" vertical-align:text-bottom" CommandName="insert" CommandArgument='TouristAdd' ValidationGroup="12" CssClass="delete" runat="server" ToolTip="Add" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/add.png"/>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:CommandField ItemStyle-CssClass="edit-del" ButtonType="Image" ShowEditButton="True" ControlStyle-CssClass="css_grid_upd_can" HeaderText="Edit" ValidationGroup="11"
                                                        UpdateImageUrl="~\Data\Sites\1\skins\StandardSkin\images\btn_insert.png" UpdateText="Update" 
                                                        EditImageUrl="~\Data\Sites\1\skins\StandardSkin\images\edit.png" EditText="Edit"
                                                        CancelImageUrl="~\Data\Sites\1\skins\StandardSkin\images\cancel.png" CancelText="Cancel"  >
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:CommandField>

                                                    <asp:TemplateField HeaderText="Del" ItemStyle-CssClass="edit-del">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="btnDelete" CommandName="delete" CommandArgument='<%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')" ValidationGroup="1110000"/>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:ImageButton ID="btnUpdate" CommandName="delete" CommandArgument='<%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')" ValidationGroup="1110000"/>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>

                        <%--------------------------------------------------------------------%>
                        <tr >
                            <td colspan="4">
                                <table cellpadding=0 cellspacing=0 border=0>
                                    <tr class="div_title_parent">
                                        <td class="div_title div_title_group">DOMAIN PACKAGE:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

                        <tr>
                            <td class="title gSDMS_Grid" colspan="4">
                                <asp:UpdatePanel ID="updDomain" runat="server" EnableViewState="true">
                                    <ContentTemplate>
                                        
                                           <asp:GridView ID="grdDomain" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="10" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                                                CssClass="css_grid" ShowFooter="true" ShowFooterWhenEmpty="True" DataKeyNames="Hosting_Contract_Domain_ID"
                                                >
                                                <AlternatingRowStyle CssClass='AlternatingRowStyle' /> <EditRowStyle CssClass='EditRowStyle' />
                                                <FooterStyle CssClass='FooterStyle' /> <HeaderStyle CssClass='HeaderStyle' />
                                                <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" /> <RowStyle CssClass='RowStyle' />
                                                <SelectedRowStyle CssClass='SelectedRowStyle' />
                                    
                                                <Columns >
                                                    <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                                        <ItemTemplate>
                                                            <asp:LinkButton CommandName="insert-empty-row" CommandArgument='<%# grdDomain.PageIndex * grdDomain.PageSize + grdDomain.Rows.Count + 1%>' ID="lbtInser" runat="server" ValidationGroup="13" ToolTip="Click to insert a empty row" Font-Underline="true">
                                                                <%# grdDomain.PageIndex * grdDomain.PageSize + grdDomain.Rows.Count + 1%>
                                                            </asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Domain name (*)" ItemStyle-CssClass="text" HeaderStyle-Width="220px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
                                                        <ItemTemplate><%#Eval("Domain_Name")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDomain_Name" runat="server" Text='<%#Eval("Domain_Name")%>' CssClass="txtInput" MaxLength="50" ValidationGroup="111" Width="200px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtDomain_Name" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="111"  ID="ReqtxtDomain_Name1" runat="server" ></asp:RequiredFieldValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtDomain_Name" runat="server" Text='<%#Eval("Domain_Name")%>' CssClass="txtInput" MaxLength="50" ValidationGroup="112" Width="200px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtDomain_Name" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="112" ID="ReqtxtDomain_Name2" runat="server" ></asp:RequiredFieldValidator>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                        
                                                    <asp:TemplateField HeaderText="Start date (*)" ItemStyle-CssClass="text" HeaderStyle-Width="95px" ItemStyle-Width="95px"  HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                                        <ItemTemplate><%#Eval("Start_Date")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server" Text='<%#Eval("Start_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="111" onkeyup="CompleteValueDatePad(this, event)" Width="90"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="111"  ID="ReqtxtStart_Date1" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="111"  ID="RegtxtStart_Date1" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server"  CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="112" Width="90" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="112" ID="ReqtxtStart_Date1" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="112" ID="RegtxtStart_Date1" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="End date (*)" ItemStyle-CssClass="text" HeaderStyle-Width="95px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="95px"  ItemStyle-HorizontalAlign="Center">
                                                        <ItemTemplate> <div class='<%# ud_gSDMS.Code_Service.Library.GiveAlarm(Eval("End_Date"), "vi-VN") %>' > <%#Eval("End_Date")%> </div></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" Text='<%#Eval("End_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="111" onkeyup="CompleteValueDatePad(this, event)" Width="90"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqtxtEnd_Date2" runat="server" ValidationGroup="111"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ID="RegtxtEnd_Date2" runat="server"  ValidationGroup="111"
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="112" Width="90" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="112" ID="ReqtxtEnd_Date2" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="112" ID="RegtxtEnd_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                            
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="World domain" ItemStyle-CssClass="" HeaderStyle-Width="90px" ItemStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate><%#Eval("World_Domain")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:RadioButton Checked='<%#Eval("World_Domain")!=DBNull.Value && Convert.ToBoolean(Eval("World_Domain")) %>' GroupName="Domain" ValidationGroup="111" ID="radWorld_Domain" runat="server" />
                                                            <%--<asp:CompareValidator Operator="NotEqual" ControlToCompare="radWorld_Domain" ControlToValidate="radVietNam_Domain" SetFocusOnError="true" Display="Dynamic" runat="server">*</asp:CompareValidator>--%>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:RadioButton GroupName="Domain" ValidationGroup="112" ID="radWorld_Domain" runat="server" />
                                                            <%--<asp:CompareValidator Operator="NotEqual" ID="CompareValidator1" ControlToCompare="radWorld_Domain" ControlToValidate="radVietNam_Domain" SetFocusOnError="true" Display="Dynamic" runat="server">*</asp:CompareValidator>--%>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="VietNam Domain" ItemStyle-CssClass="" HeaderStyle-Width="107px" ItemStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"  HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate><%#Eval("VietNam_Domain")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:RadioButton Checked='<%#Eval("VietNam_Domain")!=DBNull.Value && Convert.ToBoolean(Eval("VietNam_Domain"))%>' GroupName="Domain" ValidationGroup="111" ID="radVietNam_Domain" runat="server" />
                                                            <%--<asp:CompareValidator Operator="NotEqual" ID="CompareValidator2" ControlToCompare="radVietNam_Domain" ControlToValidate="radWorld_Domain" SetFocusOnError="true" Display="Dynamic" runat="server">*</asp:CompareValidator>--%>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:RadioButton GroupName="Domain" ValidationGroup="112" ID="radVietNam_Domain" runat="server" />
                                                            <%--<asp:CompareValidator Operator="NotEqual" ID="CompareValidator2" ControlToCompare="radVietNam_Domain" ControlToValidate="radWorld_Domain" SetFocusOnError="true" Display="Dynamic" runat="server">*</asp:CompareValidator>--%>
                                                            
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Price" ItemStyle-CssClass="text" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
                                                        <ItemTemplate> <%#Eval("Price")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDomain_Price" runat="server" Text='<%#Eval("Price")%>' CssClass="txtInput" MaxLength="50" ValidationGroup="115"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtDomain_Price" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="111" ID="ReqtxtPrice" runat="server" ></asp:RequiredFieldValidator>
                                                            
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtDomain_Price" runat="server" Text='<%#Eval("Price")%>' CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtDomain_Price" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="112" ID="ReqtxtPrice" runat="server" ></asp:RequiredFieldValidator>
                                                            
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Content" ItemStyle-CssClass="text" HeaderStyle-Width="175px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
                                                        <ItemTemplate> <%#Eval("Domain_Content")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDomain_Content" runat="server" Text='<%#Eval("Domain_Content")%>' CssClass="txtInput" MaxLength="100" Width="130px"></asp:TextBox>
                                                       
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtDomain_Content" runat="server" Text='<%#Eval("Domain_Content")%>' CssClass="txtInput" MaxLength="100" Width="130px"></asp:TextBox>
                                                            <asp:ImageButton ID="btnAdd" style="vertical-align:text-bottom" CommandName="insert" CommandArgument='<%# grdDomain.PageIndex * grdDomain.PageSize + grdDomain.Rows.Count + 1%>'  CssClass="delete" runat="server" ToolTip="Add" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/add.png"/>
                                                        </FooterTemplate>
                                                    </asp:TemplateField>
                                                    
                                                    <asp:CommandField ItemStyle-CssClass="edit-del" ButtonType="Image" ShowEditButton="True" ControlStyle-CssClass="css_grid_upd_can" HeaderText="Edit" ValidationGroup="111"
                                                        UpdateImageUrl="~\Data\Sites\1\skins\StandardSkin\images\btn_insert.png" UpdateText="Update"
                                                        EditImageUrl="~\Data\Sites\1\skins\StandardSkin\images\edit.png" EditText="Edit"
                                                        CancelImageUrl="~\Data\Sites\1\skins\StandardSkin\images\cancel.png" CancelText="Cancel"  >
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:CommandField>

                                                    <asp:TemplateField HeaderText="Del" ItemStyle-CssClass="edit-del">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="btnDelete" CommandName="delete" CommandArgument='<%# grdDomain.PageIndex * grdDomain.PageSize + grdDomain.Rows.Count + 1%>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')" ValidationGroup="1110000"/>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:ImageButton ID="btnUpdate" CommandName="delete" CommandArgument='<%# grdDomain.PageIndex * grdDomain.PageSize + grdDomain.Rows.Count + 1%>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')" ValidationGroup="1110000"/>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        
                        <%--Attach file--%>
                        <tr>
                            <td class="title"><asp:Label runat="server" ID="lblAttachments">Attach files: </asp:Label></td>
                            <td class="input" colspan="3">
                                <asp:Repeater ID="rptAttachments" runat="server">
                                    <ItemTemplate>
                                        <asp:Image ID="imgType" runat="server" AlternateText=" " ImageUrl='<%# Page.ResolveUrl("~/Data/SiteImages/Icons/unknown.png") %>' />
                                        <asp:Label ID="Label1" Text='<%# Eval("p.FileName") %>' runat="server" />
                                        
                                        <asp:ImageButton ID="ibtnDownload" runat="server" AlternateText=" " ImageUrl='<%# Page.ResolveUrl("~/Data/SiteImages/Download.gif") %>'
                                            CommandName="DownloadItem" CommandArgument='<%# Eval("p.FileID") %>' />
                                        <asp:ImageButton ID="ibtnDelete" runat="server" AlternateText=" " ImageUrl='<%# Page.ResolveUrl("~/Data/SiteImages/delete.gif") %>'
                                            CommandName="DeleteItem" CommandArgument='<%# Eval("p.ServerFileName") %>' />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="title">Add attach file: </td>
                            <td class="input" colspan="3">
                                <NeatUpload:InputFile ID="file1" runat="server" />
                                <NeatUpload:ProgressBar ID="progressBar" runat="server"></NeatUpload:ProgressBar>
                                <portal:mojoButton ID="btnUpload" runat="server" Text="Upload" ValidationGroup="subm" Visible="false" OnClientClick="return document.getElementById('ctl00_mainContent_hidId').value!=''"  />
                            </td>
                        </tr>
                        <%--end attach file--%>

                        

                        <tr class="tr_action">
                            <td></td>
                            <td>
                                <asp:Button ID='btnSave' runat="server" CssClass="btn_01 btn_save" Text="Save" />
                                <button id="reset" class="btn_01" type="reset" >Reset</button>
                                &nbsp;&nbsp;
                                <%--<a href="javascript:history.back();" class="go_back">Go back</a>--%>
                                <a href="/gsdmsmodule/contract/Contract_HostDomain.aspx?pageid=29" class="go_back" runat="server" id="lnkGoback">Go back</a>
                                &nbsp;&nbsp;
                                <asp:Button ID='btnDelere' runat="server" CssClass="btn_01" Text="Delete" Visible="false" />
                                
                                <%--<asp:Button ID='btnSendMail' runat="server" CssClass="btn_01" Text="Send email" />--%>
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="title"></td>
                            <td class="input"><asp:Label ID="lblMes" runat="server" Visible="false" CssClass="lblMes"></asp:Label></td>
                        </tr>

                        
                    </table>
                </div>

<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
